﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/3/17 10:53:33
    /// </summary> 
    [Serializable]
    [ModelMap("Plm_PersonLeave", new string[] { "Pl_ID" })]
    public class PlmPersonleaveInfo : BaseEntity
    {
        public PlmPersonleaveInfo()
        {

        }
        
        
        private string _plId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("Pl_ID", System.Data.DbType.String)]
        public string Pl_ID
        {
            get {return _plId;}
            set
            {
                if (object.Equals(this._plId, value) != true)
                {
                    this._plId = value;
                    this.RaisePropertyChanged("Pl_ID");
                }
            }
        }
        
        
        private int _plUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Pl_UserID", System.Data.DbType.Int32)]
        public int Pl_UserID
        {
            get {return _plUserid;}
            set
            {
                if (object.Equals(this._plUserid, value) != true)
                {
                    this._plUserid = value;
                    this.RaisePropertyChanged("Pl_UserID");
                }
            }
        }
        
        
        private string _plUsername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Pl_UserName", System.Data.DbType.String)]
        public string Pl_UserName
        {
            get {return _plUsername;}
            set
            {
                if (object.Equals(this._plUsername, value) != true)
                {
                    this._plUsername = value;
                    this.RaisePropertyChanged("Pl_UserName");
                }
            }
        }
        
        
        private DateTime _plTime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Pl_Time", System.Data.DbType.DateTime)]
        public DateTime Pl_Time
        {
            get {return _plTime;}
            set
            {
                if (object.Equals(this._plTime, value) != true)
                {
                    this._plTime = value;
                    this.RaisePropertyChanged("Pl_Time");
                }
            }
        }
        
        
        private bool _plType;
        /// <summary>
        /// 请假类型（0=员工请假，1=主任请假）
        /// </summary>
        [ColumnMap("Pl_Type", System.Data.DbType.Boolean)]
        public bool Pl_Type
        {
            get {return _plType;}
            set
            {
                if (object.Equals(this._plType, value) != true)
                {
                    this._plType = value;
                    this.RaisePropertyChanged("Pl_Type");
                }
            }
        }
        
        
        private string _plPersonid;
        /// <summary>
        /// 请假人ID
        /// </summary>
        [ColumnMap("Pl_PersonID", System.Data.DbType.String)]
        public string Pl_PersonID
        {
            get {return _plPersonid;}
            set
            {
                if (object.Equals(this._plPersonid, value) != true)
                {
                    this._plPersonid = value;
                    this.RaisePropertyChanged("Pl_PersonID");
                }
            }
        }
        
        
        private string _plPersonname;
        /// <summary>
        /// 请假人
        /// </summary>
        [ColumnMap("Pl_PersonName", System.Data.DbType.String)]
        public string Pl_PersonName
        {
            get {return _plPersonname;}
            set
            {
                if (object.Equals(this._plPersonname, value) != true)
                {
                    this._plPersonname = value;
                    this.RaisePropertyChanged("Pl_PersonName");
                }
            }
        }
        
        
        private string _plSection;
        /// <summary>
        /// 请假人所在标段（合同号）
        /// </summary>
        [ColumnMap("Pl_Section", System.Data.DbType.String)]
        public string Pl_Section
        {
            get {return _plSection;}
            set
            {
                if (object.Equals(this._plSection, value) != true)
                {
                    this._plSection = value;
                    this.RaisePropertyChanged("Pl_Section");
                }
            }
        }
        
        
        private int _plUnitid;
        /// <summary>
        /// 请假人单位ID
        /// </summary>
        [ColumnMap("Pl_UnitID", System.Data.DbType.Int32)]
        public int Pl_UnitID
        {
            get {return _plUnitid;}
            set
            {
                if (object.Equals(this._plUnitid, value) != true)
                {
                    this._plUnitid = value;
                    this.RaisePropertyChanged("Pl_UnitID");
                }
            }
        }
        
        
        private string _plUnitname;
        /// <summary>
        /// 请假人单位名称
        /// </summary>
        [ColumnMap("Pl_UnitName", System.Data.DbType.String)]
        public string Pl_UnitName
        {
            get {return _plUnitname;}
            set
            {
                if (object.Equals(this._plUnitname, value) != true)
                {
                    this._plUnitname = value;
                    this.RaisePropertyChanged("Pl_UnitName");
                }
            }
        }
        
        
        private string _plCoverman;
        /// <summary>
        /// 顶岗人员
        /// </summary>
        [ColumnMap("Pl_CoverMan", System.Data.DbType.String)]
        public string Pl_CoverMan
        {
            get {return _plCoverman;}
            set
            {
                if (object.Equals(this._plCoverman, value) != true)
                {
                    this._plCoverman = value;
                    this.RaisePropertyChanged("Pl_CoverMan");
                }
            }
        }
        
        
        private DateTime _plStartdate;
        /// <summary>
        /// 请假开始时间
        /// </summary>
        [ColumnMap("Pl_StartDate", System.Data.DbType.DateTime)]
        public DateTime Pl_StartDate
        {
            get {return _plStartdate;}
            set
            {
                if (object.Equals(this._plStartdate, value) != true)
                {
                    this._plStartdate = value;
                    this.RaisePropertyChanged("Pl_StartDate");
                }
            }
        }
        
        
        private DateTime _plEnddate;
        /// <summary>
        /// 请假结束时间
        /// </summary>
        [ColumnMap("Pl_EndDate", System.Data.DbType.DateTime)]
        public DateTime Pl_EndDate
        {
            get {return _plEnddate;}
            set
            {
                if (object.Equals(this._plEnddate, value) != true)
                {
                    this._plEnddate = value;
                    this.RaisePropertyChanged("Pl_EndDate");
                }
            }
        }
        
        
        private string _plReason;
        /// <summary>
        /// 请假事由
        /// </summary>
        [ColumnMap("Pl_Reason", System.Data.DbType.String)]
        public string Pl_Reason
        {
            get {return _plReason;}
            set
            {
                if (object.Equals(this._plReason, value) != true)
                {
                    this._plReason = value;
                    this.RaisePropertyChanged("Pl_Reason");
                }
            }
        }
        
        
        private int _plState;
        /// <summary>
        /// 审批状态(0=草稿，1=驻地/检测主任审批，2=总监审批，3=质监部部长批示，4=主管领导批示，5=审批通过，6=审批不通过)
        /// </summary>
        [ColumnMap("Pl_State", System.Data.DbType.Int32)]
        public int Pl_State
        {
            get {return _plState;}
            set
            {
                if (object.Equals(this._plState, value) != true)
                {
                    this._plState = value;
                    this.RaisePropertyChanged("Pl_State");
                }
            }
        }
        
        
        private string _plRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Pl_Remark", System.Data.DbType.String)]
        public string Pl_Remark
        {
            get {return _plRemark;}
            set
            {
                if (object.Equals(this._plRemark, value) != true)
                {
                    this._plRemark = value;
                    this.RaisePropertyChanged("Pl_Remark");
                }
            }
        }
        
        
    }
}



